const http = require('http')

http.createServer((request,response) => {
    //设置中文编码
    response.setHeader( 'content-type', 'text/html;charset=utf-8')
    // response.writeHead(200, { 'Content-Type': 'text/plain' });
    response.end('你好')
}).listen(8888)